package com.caijin.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.caijin.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 课程表
 * </p>
 *
 * @author Peas
 * @since 2021-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_course")
@ApiModel(value = "Course对象", description = "课程表")
public class Course extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程编号，主键，唯一标识，自增")
    @TableId(value = "cno", type = IdType.AUTO)
    private Long cno;

    @ApiModelProperty(value = "课程对应的教师工号")
    private Long tno;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "说明")
    @TableField("`describe`")
    private String describe;

    @ApiModelProperty(value = "教师姓名")
    @TableField("`t_name`")
    private String tname;

    @ApiModelProperty(value = "课程名称，最多40个字符")
    private String cname;
}
